package trlygjj.tanruiliyigenjinjin.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import trlygjj.tanruiliyigenjinjin.domain.Home;
import trlygjj.tanruiliyigenjinjin.service.IHomeService;

import java.util.List;

/**
 * Created by user on 2018/7/11.
 */
@Controller
@RequestMapping("home")
public class HomeController {

    @Autowired
    private IHomeService homeService;

    @ResponseBody
    @RequestMapping("selectByEmployeeId")
    public List<Home> selectByEmployeeId(Long employeeId){
      return  homeService.selectByEmployeeId(employeeId);
    }

}
